<!DOCTYPE html>
<html>
<head>
	<title>
		
	</title>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="__CSS__/main.css">
	<script src="__JS__/jquery-1.11.3.js"></script>
	<script src="__JS__/index.js" type="text/javascript"></script>
	<script src="__JS__/frame.js" type="text/javascript"></script>
	<script src="__JS__/tishi.js" type="text/javascript"></script>

	<link href="__CSS__/normalize.css" rel="stylesheet" type="text/css">
	<script src="__JS__/tishi.js" type="text/javascript"></script>
	
    <link rel="stylesheet" href="__CSS__/animate.min.css">
    <link rel="stylesheet" href="__CSS__/jquery.gDialog.css">
    <script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
	<script src="__JS__/jquery.gDialog.js"></script>	
<style>
button { border:0;}
.container { margin:50px auto; max-width:728px;text-align:center;font-family:Arial;}
.btn {background-color:#ED5565; color:#fff; padding:20px; margin:10px 30px; border-radius:5px; border-bottom:3px solid #DA4453;}
</style>	
</head>
<body>
<!--未定义-->
	<div id="head" class="header">
		<div class="logo">
        <a href="index.html" target="_self"></a>
		</div>
		<div class="info">
			<ul>
            	<li><a href="index.html">返回首页</a></li>
                <li><a href="#">修改密码</a></li>
                 <li><a href="#">个人设置</a></li>
            </ul>

		</div>
	</div>
	<div class="clear"></div>

  <!-- 左导航 -->

<div class="nav" id="main">

      <div id="guid">
			<p>管理控制台</p>
			<ul id="accordion" class="accordion">
		<li>
			<div class="link"><i class="fa fa-paint-brush"></i>云网站<i class="fa fa-chevron-down"></i></div>
			<ul class="submenu"  style="display:block;">
						<li><a href="__MODULE__/Company/index" target="_self">公司设置</a></li>
						<li><a href="__MODULE__/Product/index" target="_self">产品设置</a></li>
						<li><a href="__MODULE__/Gname/index" target="_self">广告设置</a></li>
						<li><a href="__MODULE__/Anli/index" target="_self">客户案例</a></li>
						<li><a href="__MODULE__/team/index">团队风采</a></li>
						<li class="tishi_1"><a href="#">留言查看</a></li>
						<li><a href="__MODULE__/Mainsite/index" target="_self">三屏主站</a></li>
						<li class="tishi_1"><a href="#">云网站浏览</a></li>

			</ul>

		</li>
		<li>
			<div class="link"><i class="fa fa-code"></i>云搜索<i class="fa fa-chevron-down"></i></div>
			<ul class="submenu">
				<li class="tishi_1"><a href="#" target="_self">搜索发布</a></li>
				<li class="tishi_1"><a href="#">搜索查看</a></li>
				<li class="tishi_1"><a href="#">搜索展示</a></li>
				<li class="tishi_1"><a href="#">行业分类</a></li>
				<li class="tishi_1"><a href="#">草稿箱</a></li>
				<li class="tishi_1"><a href="#">搜索发布必读</a></li>


			</ul>
		</li>
		
		<li><div class="link"><i class="fa fa-globe"></i>云客服<i class="fa fa-chevron-down"></i></div>
			<ul class="submenu">
						<li class="tishi_1"><a href="#" target="_self">QQ客服在线</a></li>
						<li class="tishi_1"><a href="#" target="_self">微信二维码</a></li>
						<li class="tishi_1"><a href="#" target="_self">二维码生成</a></li>
						<li class="tishi_1"><a href="#">优快推云客服</a></li>
						<li class="tishi_1"><a href="#">云客服管理中心</a></li>
						

			</ul>
		</li>
		<li><div class="link"><i class="fa fa-globe"></i>新闻软文<i class="fa fa-chevron-down"></i></div>
			<ul class="submenu">
						<li class="tishi_1"><a href="#">新闻软文发布</a></li>
						<li class="tishi_1"><a href="#">新闻APP发布</a></li>
						


			</ul>
		</li>
		<li><div class="link"><i class="fa fa-globe"></i>云推广<i class="fa fa-chevron-down"></i></div>
			<ul class="submenu">
						<li class="tishi_1"><a href="#">新浪微博推广</a></li>
						<li class="tishi_1"><a href="#">百度知道</a></li>
						<li class="tishi_1"><a href="#">论坛资源推广</a></li>
			</ul>
		</li>
		<li>
			<div class="link"><i class="fa fa-mobile"></i>云应用<i class="fa fa-chevron-down">
			</i></div>
			<ul class="submenu">
						<li class="tishi_1"><a href="#">代写软文</a></li>
						<li class="tishi_1"><a href="#">云搜索代发</a></li>
						<li class="tishi_1"><a href="#">关键词匹配</a></li>
						<li><a href="buySave.html">在线充值</a></li>
			</ul>
		</li>
	</ul>
		
		</div> 
       <div id="main_show">
       <p id="web_gg">公告：欢迎您进入优快推推广平台。企业要推广，就用优快推<span>优快推v6 1.0</span></p> 
       
       <div id="divo"></div><div id="divo"></div>
         <div id="win">
         		
            	<div class="password_win">
                	<form method="post">
                    	<p><label>请输入您的旧密码：</label>
                        <input type="text"></p>
                        <p><label>请输入您的新密码：</label>
                        <input type="text"></p>
                        <p><label>请再次输入新密码：</label>
                        <input type="text"></p>
                        <p><input type="submit" type="保存"></p>
                    </form>
                    	<p class="icn_close"></p>
                </div>
            </div>
       </div>
				<div id="could_web" style="display:block;">
				<div id="case" style="display:block;" class="product1" >
						<div class="case_head">
							<div class="set_head">
						<ul>
							<a href="__CONTROLLER__/index" >添加客户案例</a>
							<a href="__CONTROLLER__/index_guanli" style="background-color:rgb(151,31,32);">客户管理</a>
							</ul>
					</div>
						</div>
						<div class="case_form set4" style="display:none;">
							<form method="post" action="__CONTROLLER__/addAnli" class="reset">
								<div class="case_txt">
									<ul>
										<li><span>*</span>图片上传:</li>
										
										<li><span>*</span>标&nbsp;&nbsp;&nbsp;&nbsp;题:</li>
										<li><span>*</span>排&nbsp;&nbsp;&nbsp;&nbsp;序:</li>
										<li><span>*</span>具体描述:</li>
									</ul>
								</div>
								<div class="case_input">
									<ul>
										<li>
								<!-- 图片上传 -->
											 	<div id="tab1" class="tab-pane in tab1">
										<div class="controls">
										
										<input type="file" id="upload_picture" >
										<input type="hidden" name="icon" id="icon" value="{$info['icon']|default=''}"/>
										<div class="upload-img-box">
										<notempty name="info['icon']">
											<div class="upload-pre-item"><img src="__ROOT__{$info.icon|get_cover='path'}"/></div>
										</notempty>
										</div>
									</div>
									<script type="text/javascript">
									//上传图片
								    /* 初始化上传插件 */
									$("#upload_picture").uploadify({
								        "height"          : 30,
								        "swf"             : "__STATIC__/uploadify/uploadify.swf",
								        "fileObjName"     : "download",
								        "buttonText"      : "上传图片",
								        "uploader"        : "{:U('Anli/uploadPicture',array('session_id'=>session_id()))}",
								        "width"           : 120,
								        'removeTimeout'	  : 1,
								        'fileTypeExts'	  : '*.jpg; *.png; *.gif;',
								        "onUploadSuccess" : uploadPicture,
								        'onFallback' : function() {
								            alert('未检测到兼容版本的Flash.');
								        }
								    });
									function uploadPicture(file, data){
								    	var data = $.parseJSON(data);
								    	var src = '';
								        if(data.status){
								        	// $("#icon").val(data.id);
								        	// src = data.url || '__ROOT__' + data.path;
								        	// $("#icon").parent().find('.upload-img-box').html(
								        	// 	'<div class="upload-pre-item"><img src="' + src + '"/></div>'
								        	// );
								        } else {
								        	updateAlert(data.info);
								        	setTimeout(function(){
								                $('#top-alert').find('button').click();
								                $(that).removeClass('disabled').prop('disabled',false);
								            },1500);
								        }
								    }
					</script>
				</div>
							
                                             


										</li>
										<li class="biaoti">
											<input type="text" name="title" placeholder="填写案例标题">
										</li>
										<li>
											<input placeholder='数字越小越靠前' type="text" name="num">
										</li>
										<li>
											<textarea name="content" style="width:600px;height:300px;visibility:hidden;"></textarea>
										</li>
										<li class="button">
											<input type="submit" class="submit_btn" value="保存">
										</li>
                                       <!--  <iframe src="about:blank" style="display:none;" name="client_frame" id="client_frame"></iframe>
										<script type="text/javascript">
										$(".reset").attr("target","client_frame")
										</script>
 -->
									</ul>
								</div>
							</form>
						</div>

						<!--客户案例管理-->
						<div id="client_control" class="set4" style="display:block;">
							<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;客户案例管理</p>
							<div id="client_border">
								<p><input type="button" id="button_id" value="批量删除"></p>
                                <div id="client_tab">
                                	<div class="cltab_head">

                                    	<p><input class="pl_id_fb" type="checkbox"/></p>
                                        <p>案例图片</p>
                                        <p>标题</p>
                                        <p>排序</p>
                                        <p>操作</p>
                                    </div>
								<table id="client_table">
								<volist name="data" id="vo">	
									 <tr>
									 	<td><input class="pl_id" type="checkbox" value="{$vo.id}"/></td>
									 	<td><img src="__ROOT__/{$vo.path}" width="10px"></td>
									 	<td>{$vo.title}</td>
									 	<td>{$vo.num}</td>
									 	<td>
									 		<a class="ctn" href="#">编辑</a>
									 		<a class="dtn" href="__MODULE__/Anli/delete/id/{$vo.id}">删除</a>
									 	</td>
									 </tr>
                               </volist>
								</table>
								<div class="page">{$page}</div>
                                </div>
 
							</div><!--客户案例管理边框-->
						</div>
                     <style>
                            .page{
                                float: right;	
                            }
                            .ctn{
                            	background-color: #52B7D5;
                            	font-size: 1px;
                            	color:#fff;
                            	border-radius: 5px;
                                 display:inline-block;
                                 width:50px;
                            }

                            .dtn{
                            	background-color: #E0534F;
                            	font-size: 1px;
                            	color:#fff;
                            	border-radius: 5px;
                                 display:inline-block;
                                 width:50px;
                            }  
                     </style>
                     <!-- 批量删除 -->
                     <script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
							<script src="__JS__/jquery.gDialog.js"></script>
                     <script type="text/javascript">
                      
                           	var array_id = new Array();
                           	$(".pl_id").click(function(){
                            //点谁获取谁 然后做判断将新值填入进去
                                 var id = $(this).val();
                                 // alert(id);
                                 
                               

                                    array_id.push($(this).val());
                               
						          // 	 }
						          // alert(array_id);
                            
                            $("#button_id").click(function(){
						        $.ajax({
						        	type:"POST",
						        	url:"__CONTROLLER__/delAnli",
						        	data:{array_id},
						        	dataType:"json",
						        	success:function(data){
						        		if(data == false)
						        		{
                                           alert("对不起,你没有权限");
						        		}else{
                                          
                                           $("input:checked").parent().parent().remove();
                                           array_id = "";
						        		}
						        	}
						        });
						    });

						     });


                       $('.ctn').click(function(){
							  $.gDialog.confirm("企优托提醒您：先生/女士，您权限不够请开通服务！", {
							    title: "企优托提醒您,信息未完善",
								animateIn : "bounceInDown",
							    animateOut: "bounceOutUp"
							  });
							});  










                           //       批量操作
                                
                           // });

                     </script>



                        <div id="tuiguang">
			<div class="xinlang product1">
				<p> ！</p>
			</div>
			<div class="baidu product1">
				<p>22 </p>
			</div>
			<div class="luntan product1">
				<p> 22</p>
			</div>
		</div>

					</div>
</body>
</html>
